#ifndef MULTIDATASADDTION_H
#define MULTIDATASADDTION_H
#include <QMutex>
#include <QtWidgets>
#include "tools/Wings.h"
#include "solar/beacon/Field.h"
#include "tools/Gadget.h"
#include <QSqlQuery>

class MultidatasAddtion : public QObject, public QRunnable{

    Q_OBJECT

public:
    MultidatasAddtion(QMap<ThreadPoint, NT::THREAD_STATE> &_pool_thread_,
                      QMap<QString, QMap<QString, QString>> &_RGLRLMAP_,
                      QMap<QString, QString> &_pool_chars_,
                      QMap<QString, QList<QString>> &_pool_ststr_,
                      QSqlDatabase *db);

    void run();

private:
    QMap<QString, QString> *pool_chars;
    QMap<QString, QList<QString>> *pool_ststr;
    QMap<QString, QMap<QString, QString>> *RGLRLMAP;
    QMap<ThreadPoint, NT::THREAD_STATE> *pool_thread;
    QSqlQuery Query;
    Extend definfc;
    Nlwingsing wingsing;
    QString HyperLink;
    QMap<QString, bool> RdoMap_Bool;


signals:
    void process(double, QString);
    void finish();
};

#endif // MULTIDATASADDTION_H
